<?php
$tdatagioithieu_congty=array();
	$tdatagioithieu_congty[".NumberOfChars"]=80; 
	$tdatagioithieu_congty[".ShortName"]="gioithieu_congty";
	$tdatagioithieu_congty[".OwnerID"]="";
	$tdatagioithieu_congty[".OriginalTable"]="gioithieu_congty";


	
//	field labels
$fieldLabelsgioithieu_congty = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgioithieu_congty["English"]=array();
	$fieldToolTipsgioithieu_congty["English"]=array();
	$fieldLabelsgioithieu_congty["English"]["noidung"] = "Noidung";
	$fieldToolTipsgioithieu_congty["English"]["noidung"] = "";
	$fieldLabelsgioithieu_congty["English"]["hinhanh"] = "Hinhanh";
	$fieldToolTipsgioithieu_congty["English"]["hinhanh"] = "";
	if (count($fieldToolTipsgioithieu_congty["English"])){
		$tdatagioithieu_congty[".isUseToolTips"]=true;
	}
}


	
	$tdatagioithieu_congty[".NCSearch"]=true;

	

$tdatagioithieu_congty[".shortTableName"] = "gioithieu_congty";
$tdatagioithieu_congty[".nSecOptions"] = 0;
$tdatagioithieu_congty[".recsPerRowList"] = 1;	
$tdatagioithieu_congty[".tableGroupBy"] = "0";
$tdatagioithieu_congty[".mainTableOwnerID"] = "";
$tdatagioithieu_congty[".moveNext"] = 1;




$tdatagioithieu_congty[".showAddInPopup"] = false;

$tdatagioithieu_congty[".showEditInPopup"] = false;

$tdatagioithieu_congty[".showViewInPopup"] = false;


$tdatagioithieu_congty[".fieldsForRegister"] = array();

$tdatagioithieu_congty[".listAjax"] = false;

	$tdatagioithieu_congty[".audit"] = false;

	$tdatagioithieu_congty[".locking"] = false;
	
$tdatagioithieu_congty[".listIcons"] = true;
$tdatagioithieu_congty[".edit"] = true;
$tdatagioithieu_congty[".inlineEdit"] = true;
$tdatagioithieu_congty[".view"] = true;

$tdatagioithieu_congty[".exportTo"] = true;

$tdatagioithieu_congty[".printFriendly"] = true;

$tdatagioithieu_congty[".delete"] = true;

$tdatagioithieu_congty[".showSimpleSearchOptions"] = false;

$tdatagioithieu_congty[".showSearchPanel"] = true;


$tdatagioithieu_congty[".isUseAjaxSuggest"] = true;

$tdatagioithieu_congty[".rowHighlite"] = true;


// button handlers file names

$tdatagioithieu_congty[".addPageEvents"] = false;

$tdatagioithieu_congty[".arrKeyFields"][] = "hinhanh";

// use datepicker for search panel
$tdatagioithieu_congty[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatagioithieu_congty[".isUseTimeForSearch"] = false;

$tdatagioithieu_congty[".isUseiBox"] = false;



$tdatagioithieu_congty[".isUseInlineAdd"] = true;

$tdatagioithieu_congty[".isUseInlineEdit"] = true;
$tdatagioithieu_congty[".isUseInlineJs"] = $tdatagioithieu_congty[".isUseInlineAdd"] || $tdatagioithieu_congty[".isUseInlineEdit"];

$tdatagioithieu_congty[".allSearchFields"] = array();

$tdatagioithieu_congty[".globSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatagioithieu_congty[".allSearchFields"]))
{
	$tdatagioithieu_congty[".allSearchFields"][] = "hinhanh";	
}


$tdatagioithieu_congty[".googleLikeFields"][] = "hinhanh";



$tdatagioithieu_congty[".advSearchFields"][] = "noidung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noidung", $tdatagioithieu_congty[".allSearchFields"])) 
{
	$tdatagioithieu_congty[".allSearchFields"][] = "noidung";	
}
$tdatagioithieu_congty[".advSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatagioithieu_congty[".allSearchFields"])) 
{
	$tdatagioithieu_congty[".allSearchFields"][] = "hinhanh";	
}

$tdatagioithieu_congty[".isTableType"] = "list";


	

$tdatagioithieu_congty[".isDisplayLoading"] = true;

$tdatagioithieu_congty[".isResizeColumns"] = false;





$tdatagioithieu_congty[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagioithieu_congty[".strOrderBy"] = $gstrOrderBy;
	
$tdatagioithieu_congty[".orderindexes"] = array();

$tdatagioithieu_congty[".sqlHead"] = "SELECT noidung,  hinhanh";
$tdatagioithieu_congty[".sqlFrom"] = "FROM gioithieu_congty";
$tdatagioithieu_congty[".sqlWhereExpr"] = "";
$tdatagioithieu_congty[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagioithieu_congty[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagioithieu_congty[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "hinhanh";
	$tdatagioithieu_congty[".Keys"] = $tableKeys;

//	noidung
	$fdata = array();
	$fdata["strName"] = "noidung";
	$fdata["ownerTable"] = "gioithieu_congty";
		$fdata["Label"]="Noidung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noidung";
	
		$fdata["FullName"]= "noidung";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 1;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagioithieu_congty["noidung"]=$fdata;
//	hinhanh
	$fdata = array();
	$fdata["strName"] = "hinhanh";
	$fdata["ownerTable"] = "gioithieu_congty";
		$fdata["Label"]="Hinhanh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinhanh";
	
		$fdata["FullName"]= "hinhanh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagioithieu_congty["hinhanh"]=$fdata;

	
$tables_data["gioithieu_congty"]=&$tdatagioithieu_congty;
$field_labels["gioithieu_congty"] = &$fieldLabelsgioithieu_congty;
$fieldToolTips["gioithieu_congty"] = &$fieldToolTipsgioithieu_congty;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gioithieu_congty"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["gioithieu_congty"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto59=array();
$proto59["m_strHead"] = "SELECT";
$proto59["m_strFieldList"] = "noidung,  hinhanh";
$proto59["m_strFrom"] = "FROM gioithieu_congty";
$proto59["m_strWhere"] = "";
$proto59["m_strOrderBy"] = "";
$proto59["m_strTail"] = "";
$proto60=array();
$proto60["m_sql"] = "";
$proto60["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto60["m_column"]=$obj;
$proto60["m_contained"] = array();
$proto60["m_strCase"] = "";
$proto60["m_havingmode"] = "0";
$proto60["m_inBrackets"] = "0";
$proto60["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto60);

$proto59["m_where"] = $obj;
$proto62=array();
$proto62["m_sql"] = "";
$proto62["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto62["m_column"]=$obj;
$proto62["m_contained"] = array();
$proto62["m_strCase"] = "";
$proto62["m_havingmode"] = "0";
$proto62["m_inBrackets"] = "0";
$proto62["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto62);

$proto59["m_having"] = $obj;
$proto59["m_fieldlist"] = array();
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "noidung",
	"m_strTable" => "gioithieu_congty"
));

$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto59["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "hinhanh",
	"m_strTable" => "gioithieu_congty"
));

$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto59["m_fieldlist"][]=$obj;
$proto59["m_fromlist"] = array();
												$proto68=array();
$proto68["m_link"] = "SQLL_MAIN";
			$proto69=array();
$proto69["m_strName"] = "gioithieu_congty";
$proto69["m_columns"] = array();
$proto69["m_columns"][] = "id";
$proto69["m_columns"][] = "noidung";
$proto69["m_columns"][] = "hinhanh";
$obj = new SQLTable($proto69);

$proto68["m_table"] = $obj;
$proto68["m_alias"] = "";
$proto70=array();
$proto70["m_sql"] = "";
$proto70["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto70["m_column"]=$obj;
$proto70["m_contained"] = array();
$proto70["m_strCase"] = "";
$proto70["m_havingmode"] = "0";
$proto70["m_inBrackets"] = "0";
$proto70["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto70);

$proto68["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto68);

$proto59["m_fromlist"][]=$obj;
$proto59["m_groupby"] = array();
$proto59["m_orderby"] = array();
$obj = new SQLQuery($proto59);

$queryData_gioithieu_congty = $obj;
$tdatagioithieu_congty[".sqlquery"] = $queryData_gioithieu_congty;

$tableEvents["gioithieu_congty"] = new eventsBase;

?>
